<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib uri="/page" prefix="public"%>
<public:pageControl classPath="app.portalbs.system.enums.EnumType"/>

<script language="javascript" >

function enumTree_onclick(tree,page){
	
	 if(!tree.treeNode.isParent){			 
		 page.find("enumTreeFrame").view.url = "EnumGrid.jsp?par_id=" + tree.treeNode.nodeID;			 
	 }else{			 
		 page.find("enumTreeFrame").view.url = "";			 
	 }
	 
}

/* 树展示处理 */
function enumTree_show(tree,page,type){
	 
	 if(type == "add"){
		 if(tree.treeNode.level == 0 ){
		 	return true;	 
		 }else{
			 return false;
		 }
	 }
	 
	 else if(type == "edit"){
		 if(tree.treeNode.level == 0 ){
			 return false;
		 }else{
			 return true;
		 }
	 }
	 
	 else if(type == "delete"){
		 if(tree.treeNode.level == 0 ){
			 return false;
		 }else{
			 return true;
		 }
	 }
	 
	 else{			 
		 return true;		 
	 }
	 
}
 
</script>

